<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Module quickrand_normal</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="EDoc">
</head>
<body bgcolor="white">
<div class="navbar"><a name="#navbar_top"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<hr>

<h1>Module quickrand_normal</h1>
<ul class="index"><li><a href="#description">Description</a></li><li><a href="#index">Function Index</a></li><li><a href="#functions">Function Details</a></li></ul>
   <h3><a name="Quick_Normal_Distribution_Random_Number_Generation">Quick Normal Distribution Random Number Generation</a></h3>.
<p>Copyright © 2017 Michael Truog</p>

<p><b>Version:</b> 1.7.2 Nov 28 2019 11:56:59
  ------------------------------------------------------------------------</p>
<p><b>Authors:</b> Michael Truog (<a href="mailto:mjtruog at protonmail dot com"><tt>mjtruog at protonmail dot com</tt></a>).</p>

<h2><a name="description">Description</a></h2>
   <h3><a name="Quick_Normal_Distribution_Random_Number_Generation">Quick Normal Distribution Random Number Generation</a></h3>

<h2><a name="index">Function Index</a></h2>
<table width="100%" border="1" cellspacing="0" cellpadding="2" summary="function index"><tr><td valign="top"><a href="#box_muller-2">box_muller/2</a></td><td>
  <h4><a name="Box-Muller_transformation_for_generating_Gaussian_noise.">Box-Muller transformation for generating Gaussian noise.</a></h4>
  Has numerical stability problems when X1 is very close to zero.</td></tr>
</table>

<h2><a name="functions">Function Details</a></h2>

<h3 class="function"><a name="box_muller-2">box_muller/2</a></h3>
<div class="spec">
<p><tt>box_muller(Mean::number(), StdDev::number()) -&gt; {Result1::float(), Result2::float()}</tt><br></p>
</div><p>
  <h4><a name="Box-Muller_transformation_for_generating_Gaussian_noise.">Box-Muller transformation for generating Gaussian noise.</a></h4>
  Has numerical stability problems when X1 is very close to zero.
  This is a serious problem for stochastic modelling that is generating
  millions of numbers.  If the result is used with added noise
  (e.g., creating a process sleep value) then it isn't a problem.</p>
<hr>

<div class="navbar"><a name="#navbar_bottom"></a><table width="100%" border="0" cellspacing="0" cellpadding="2" summary="navigation bar"><tr><td><a href="overview-summary.html" target="overviewFrame">Overview</a></td><td><a href="http://www.erlang.org/"><img src="erlang.png" align="right" border="0" alt="erlang logo"></a></td></tr></table></div>
<p><i>Generated by EDoc</i></p>
</body>
</html>
